import * as actionTypes from './constant';
import { Map } from 'immutable';

const defaultState = Map({
  info: '',
});

function reducer(state = defaultState, action) {
  switch (action.type) {
    case actionTypes.GET_LOGIN:
      return state.set('info', action.info);
    default:
      return state;
  }
}

export default reducer;
